package ooad.gof.observer.book;

import java.util.Observable;
import java.util.Observer;
/**
 * 图书价格监听器
 *
 */
public class PriceListener implements Observer {
	@Override
	public void update(Observable o, Object arg) {
		Book book = (Book)o;
		System.out.println(book.getName() + "的价格改变了，现在的价格是"+ book.getPrice());			
	}
}
